

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
        <meta name="layout" content="main" />
        <title>Create InfoRequest</title>         
    </head>
    <body>


        <div class="body">
        
        
            <h1>Request Info</h1>
            
            <g:if test="${flash.message}">
            	<div class="message">${flash.message}</div>
            </g:if>
            
            <g:hasErrors bean="${infoRequest}">
				<div class="errors">
					<g:renderErrors bean="${infoRequest}" as="list" />
				</div>
            </g:hasErrors>
            
            <g:form action="save" method="post" >
            
                <table>

						<tr class="prop">
							<td valign="top" class="name">First Name:</td>
							<td valign="top" class="value ${hasErrors(bean:infoRequest,field:'firstName','errors')}">
								<input type="text" maxlength="100" id="firstName" name="firstName" value="${fieldValue(bean:infoRequest,field:'firstName')}"/>
							</td>
							
							<td valign="top" class="name">Become a Beneficiary:</td>
							<td valign="top" class="value ${hasErrors(bean:infoRequest,field:'isBeneficiaryRequest','errors')}">
								<g:checkBox name="isBeneficiaryRequest" value="${infoRequest?.isBeneficiaryRequest}" ></g:checkBox>
							</td>
						</tr> 

						<tr class="prop">
							<td valign="top" class="name">Last Name:</td>
							<td valign="top" class="value ${hasErrors(bean:infoRequest,field:'lastName','errors')}">
								<input type="text" maxlength="100" id="lastName" name="lastName" value="${fieldValue(bean:infoRequest,field:'lastName')}"/>
							</td>
							
							<td valign="top" class="name">Become a Volunteer:</td>
							<td valign="top" class="value ${hasErrors(bean:infoRequest,field:'isVolunteerRequest','errors')}">
								<g:checkBox name="isVolunteerRequest" value="${infoRequest?.isVolunteerRequest}" ></g:checkBox>
							</td>
						</tr> 
						
						<tr class="prop">
							<td valign="top" class="name">Email:</td>
							<td valign="top" class="value ${hasErrors(bean:infoRequest,field:'email','errors')}">
								<input type="text" maxlength="100" id="email" name="email" value="${fieldValue(bean:infoRequest,field:'email')}"/>
							</td>
							<td></td>
							<td></td>
						</tr> 

						<tr class="prop">
							<td valign="top" class="name">Phone:</td>
							<td valign="top" class="value ${hasErrors(bean:infoRequest,field:'phone','errors')}">
								<input type="text" maxlength="100" id="phone" name="phone" value="${fieldValue(bean:infoRequest,field:'phone')}"/>
							</td>
							<td></td>
							<td></td>
						</tr> 

						<tr class="prop">
							<td valign="top" class="name">Comment:</td>
							<td colspan="4" valign="top" class="value ${hasErrors(bean:infoRequest,field:'comment','errors')}">
								<textarea rows="4" cols="80" name="comment">${infoRequest?.comment?.encodeAsHTML()}</textarea>
							</td>
						</tr> 

						<tr>
							<td></td>
							<td colspan="3">
								<input type="submit" value="Submit" />
							</td>
							<td></td>
							<td></td>
						</tr>
				
                        
                    </table>


            </g:form>
        </div>
    </body>
</html>
